import { Account } from '@app/common/types/account.type';
import { Role } from '@app/common/types/role.type';
import { Schema } from 'mongoose';

const schema = new Schema<Account>({
  account: { type: String, required: true },
  password: { type: String, required: true },
  role: {
    type: String,
    enum: Role,
    default: Role.Guest,
  },
});

export default schema;
